package com.toubutu.audio.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.toubutu.audio.common.BasePo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author 戒燥
 * @since 2023-09-30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "User对象", description = "")
public class User extends BasePo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "user_id", type = IdType.INPUT)
    private Long userId;

    @ApiModelProperty("用户昵称")
    private String nickName;
    @ApiModelProperty("用户邮箱账号")
    private String email;
    @ApiModelProperty("用户头像")
    private String avatar;
    @ApiModelProperty("用户性别")
    private Integer gender;
    @ApiModelProperty("用户生日")
    private LocalDate birthday;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户来源 1 后台管理人员 2 前台用户")
    private Integer source;

}
